-- GENERATED SPELL FOR [Smoldering Skeleton] --


function spell0_27360(pUnit, Event) --@Smoldering Bones,Self--
pUnit:FullCastSpellOnTarget(51437,pUnit)
pUnit:RegisterEvent('Sorts_27360', 0, 1)
end

function Sorts_27360(pUnit, Event)
local choix_sorts_27360 = math.random(0, 0)
if choix_sorts_27360 == 0 then
pUnit:RegisterEvent('spell0_27360', 1, 1)
end
end

function mob27360_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27360', math.random(1500, 3000), 1)
end

function mob27360_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27360_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27360_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27360, 1, 'mob27360_Action')
RegisterUnitEvent(27360, 2, 'mob27360_Leave')
RegisterUnitEvent(27360, 3, 'mob27360_Kill')
RegisterUnitEvent(27360, 4, 'mob27360_Die')
